Optimal. Leaf size=240 \[ \frac {(b d-a e) \left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \sqrt {a+b x} \sqrt {d+e x}}{8 b^4}+\frac {\left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \sqrt {a+b x} (d+e x)^{3/2}}{12 b^3}+\frac {(17 b d-13 a e) \sqrt {a+b x} (d+e x)^{5/2}}{3 b^2}+\frac {2 e (a+b x)^{3/2} (d+e x)^{5/2}}{b^2}+\frac {(b d-a e)^2 \left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \tanh ^{-1}\left (\frac {\sqrt {e} \sqrt {a+b x}}{\sqrt {b} \sqrt {d+e x}}\right )}{8 b^{9/2} \sqrt {e}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 240, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {965, 81, 52, 65,
223, 212} \begin {gather*} \frac {(b d-a e)^2 \left (35 a^2 e^2-90 a b d e+73 b^2 d^2\right ) \tanh ^{-1}\left (\frac {\sqrt {e} \sqrt {a+b x}}{\sqrt {b} \sqrt {d+e x}}\right )}{8 b^{9/2} \sqrt {e}}+\frac {\sqrt {a+b x} \sqrt {d+e x} (b d-a e) \left (35 a^2 e^2-90 a b d e+73 b^2 d^2\right )}{8 b^4}+\frac {\sqrt {a+b x} (d+e x)^{3/2} \left (35 a^2 e^2-90 a b d e+73 b^2 d^2\right )}{12 b^3}+\frac {2 e (a+b x)^{3/2} (d+e x)^{5/2}}{b^2}+\frac {\sqrt {a+b x} (d+e x)^{5/2} (17 b d-13 a e)}{3 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 81
Rule 212
Rule 223
Rule 965
Rubi steps
\begin {align*} \int \frac {(d+e x)^{3/2} \left (15 d^2+20 d e x+8 e^2 x^2\right )}{\sqrt {a+b x}} \, dx &=\frac {2 e (a+b x)^{3/2} (d+e x)^{5/2}}{b^2}+\frac {\int \frac {(d+e x)^{3/2} \left (4 e \left (15 b^2 d^2-3 a b d e-5 a^2 e^2\right )+4 b e^2 (17 b d-13 a e) x\right )}{\sqrt {a+b x}} \, dx}{4 b^2 e}\\ &=\frac {(17 b d-13 a e) \sqrt {a+b x} (d+e x)^{5/2}}{3 b^2}+\frac {2 e (a+b x)^{3/2} (d+e x)^{5/2}}{b^2}+\frac {\left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \int \frac {(d+e x)^{3/2}}{\sqrt {a+b x}} \, dx}{6 b^2}\\ &=\frac {\left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \sqrt {a+b x} (d+e x)^{3/2}}{12 b^3}+\frac {(17 b d-13 a e) \sqrt {a+b x} (d+e x)^{5/2}}{3 b^2}+\frac {2 e (a+b x)^{3/2} (d+e x)^{5/2}}{b^2}+\frac {\left ((b d-a e) \left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right )\right ) \int \frac {\sqrt {d+e x}}{\sqrt {a+b x}} \, dx}{8 b^3}\\ &=\frac {(b d-a e) \left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \sqrt {a+b x} \sqrt {d+e x}}{8 b^4}+\frac {\left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \sqrt {a+b x} (d+e x)^{3/2}}{12 b^3}+\frac {(17 b d-13 a e) \sqrt {a+b x} (d+e x)^{5/2}}{3 b^2}+\frac {2 e (a+b x)^{3/2} (d+e x)^{5/2}}{b^2}+\frac {\left ((b d-a e)^2 \left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right )\right ) \int \frac {1}{\sqrt {a+b x} \sqrt {d+e x}} \, dx}{16 b^4}\\ &=\frac {(b d-a e) \left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \sqrt {a+b x} \sqrt {d+e x}}{8 b^4}+\frac {\left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \sqrt {a+b x} (d+e x)^{3/2}}{12 b^3}+\frac {(17 b d-13 a e) \sqrt {a+b x} (d+e x)^{5/2}}{3 b^2}+\frac {2 e (a+b x)^{3/2} (d+e x)^{5/2}}{b^2}+\frac {\left ((b d-a e)^2 \left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right )\right ) \text {Subst}\left (\int \frac {1}{\sqrt {d-\frac {a e}{b}+\frac {e x^2}{b}}} \, dx,x,\sqrt {a+b x}\right )}{8 b^5}\\ &=\frac {(b d-a e) \left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \sqrt {a+b x} \sqrt {d+e x}}{8 b^4}+\frac {\left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \sqrt {a+b x} (d+e x)^{3/2}}{12 b^3}+\frac {(17 b d-13 a e) \sqrt {a+b x} (d+e x)^{5/2}}{3 b^2}+\frac {2 e (a+b x)^{3/2} (d+e x)^{5/2}}{b^2}+\frac {\left ((b d-a e)^2 \left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right )\right ) \text {Subst}\left (\int \frac {1}{1-\frac {e x^2}{b}} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {d+e x}}\right )}{8 b^5}\\ &=\frac {(b d-a e) \left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \sqrt {a+b x} \sqrt {d+e x}}{8 b^4}+\frac {\left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \sqrt {a+b x} (d+e x)^{3/2}}{12 b^3}+\frac {(17 b d-13 a e) \sqrt {a+b x} (d+e x)^{5/2}}{3 b^2}+\frac {2 e (a+b x)^{3/2} (d+e x)^{5/2}}{b^2}+\frac {(b d-a e)^2 \left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \tanh ^{-1}\left (\frac {\sqrt {e} \sqrt {a+b x}}{\sqrt {b} \sqrt {d+e x}}\right )}{8 b^{9/2} \sqrt {e}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.43, size = 189, normalized size = 0.79 \begin {gather*} \frac {\sqrt {a+b x} \sqrt {d+e x} \left (-105 a^3 e^3+5 a^2 b e^2 (89 d+14 e x)-a b^2 e \left (725 d^2+292 d e x+56 e^2 x^2\right )+b^3 \left (501 d^3+466 d^2 e x+232 d e^2 x^2+48 e^3 x^3\right )\right )}{24 b^4}+\frac {(b d-a e)^2 \left (73 b^2 d^2-90 a b d e+35 a^2 e^2\right ) \tanh ^{-1}\left (\frac {\sqrt {e} \sqrt {a+b x}}{\sqrt {b} \sqrt {d+e x}}\right )}{8 b^{9/2} \sqrt {e}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(570\) vs.
\(2(204)=408\).
time = 0.08, size = 571, normalized size = 2.38
method | result | size |
default | \(\frac {\sqrt {e x +d}\, \sqrt {b x +a}\, \left (96 b^{3} e^{3} x^{3} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {e b}-112 a \,b^{2} e^{3} x^{2} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {e b}+464 b^{3} d \,e^{2} x^{2} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {e b}+105 \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {e b}+a e +b d}{2 \sqrt {e b}}\right ) a^{4} e^{4}-480 \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {e b}+a e +b d}{2 \sqrt {e b}}\right ) a^{3} b d \,e^{3}+864 \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {e b}+a e +b d}{2 \sqrt {e b}}\right ) a^{2} b^{2} d^{2} e^{2}-708 \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {e b}+a e +b d}{2 \sqrt {e b}}\right ) a \,b^{3} d^{3} e +219 \ln \left (\frac {2 b e x +2 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {e b}+a e +b d}{2 \sqrt {e b}}\right ) b^{4} d^{4}+140 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {e b}\, a^{2} b \,e^{3} x -584 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {e b}\, a \,b^{2} d \,e^{2} x +932 \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {e b}\, b^{3} d^{2} e x -210 \sqrt {e b}\, \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, a^{3} e^{3}+890 \sqrt {e b}\, \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, a^{2} b d \,e^{2}-1450 \sqrt {e b}\, \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, a \,b^{2} d^{2} e +1002 \sqrt {e b}\, \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, b^{3} d^{3}\right )}{48 b^{4} \sqrt {\left (b x +a \right ) \left (e x +d \right )}\, \sqrt {e b}}\) | \(571\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.13, size = 514, normalized size = 2.14 \begin {gather*} \left [\frac {{\left (3 \, {\left (73 \, b^{4} d^{4} - 236 \, a b^{3} d^{3} e + 288 \, a^{2} b^{2} d^{2} e^{2} - 160 \, a^{3} b d e^{3} + 35 \, a^{4} e^{4}\right )} \sqrt {b} e^{\frac {1}{2}} \log \left (b^{2} d^{2} + 4 \, {\left (b d + {\left (2 \, b x + a\right )} e\right )} \sqrt {b x + a} \sqrt {x e + d} \sqrt {b} e^{\frac {1}{2}} + {\left (8 \, b^{2} x^{2} + 8 \, a b x + a^{2}\right )} e^{2} + 2 \, {\left (4 \, b^{2} d x + 3 \, a b d\right )} e\right ) + 4 \, {\left (501 \, b^{4} d^{3} e + {\left (48 \, b^{4} x^{3} - 56 \, a b^{3} x^{2} + 70 \, a^{2} b^{2} x - 105 \, a^{3} b\right )} e^{4} + {\left (232 \, b^{4} d x^{2} - 292 \, a b^{3} d x + 445 \, a^{2} b^{2} d\right )} e^{3} + {\left (466 \, b^{4} d^{2} x - 725 \, a b^{3} d^{2}\right )} e^{2}\right )} \sqrt {b x + a} \sqrt {x e + d}\right )} e^{\left (-1\right )}}{96 \, b^{5}}, -\frac {{\left (3 \, {\left (73 \, b^{4} d^{4} - 236 \, a b^{3} d^{3} e + 288 \, a^{2} b^{2} d^{2} e^{2} - 160 \, a^{3} b d e^{3} + 35 \, a^{4} e^{4}\right )} \sqrt {-b e} \arctan \left (\frac {{\left (b d + {\left (2 \, b x + a\right )} e\right )} \sqrt {b x + a} \sqrt {-b e} \sqrt {x e + d}}{2 \, {\left ({\left (b^{2} x^{2} + a b x\right )} e^{2} + {\left (b^{2} d x + a b d\right )} e\right )}}\right ) - 2 \, {\left (501 \, b^{4} d^{3} e + {\left (48 \, b^{4} x^{3} - 56 \, a b^{3} x^{2} + 70 \, a^{2} b^{2} x - 105 \, a^{3} b\right )} e^{4} + {\left (232 \, b^{4} d x^{2} - 292 \, a b^{3} d x + 445 \, a^{2} b^{2} d\right )} e^{3} + {\left (466 \, b^{4} d^{2} x - 725 \, a b^{3} d^{2}\right )} e^{2}\right )} \sqrt {b x + a} \sqrt {x e + d}\right )} e^{\left (-1\right )}}{48 \, b^{5}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 717 vs.
\(2 (211) = 422\).
time = 3.58, size = 717, normalized size = 2.99 \begin {gather*} -\frac {\frac {360 \, {\left (\frac {{\left (b^{2} d - a b e\right )} e^{\left (-\frac {1}{2}\right )} \log \left ({\left | -\sqrt {b x + a} \sqrt {b} e^{\frac {1}{2}} + \sqrt {b^{2} d + {\left (b x + a\right )} b e - a b e} \right |}\right )}{\sqrt {b}} - \sqrt {b^{2} d + {\left (b x + a\right )} b e - a b e} \sqrt {b x + a}\right )} d^{3} {\left | b \right |}}{b^{2}} - \frac {28 \, {\left (\sqrt {b^{2} d + {\left (b x + a\right )} b e - a b e} \sqrt {b x + a} {\left (2 \, {\left (b x + a\right )} {\left (\frac {4 \, {\left (b x + a\right )}}{b^{2}} + \frac {{\left (b^{6} d e^{3} - 13 \, a b^{5} e^{4}\right )} e^{\left (-4\right )}}{b^{7}}\right )} - \frac {3 \, {\left (b^{7} d^{2} e^{2} + 2 \, a b^{6} d e^{3} - 11 \, a^{2} b^{5} e^{4}\right )} e^{\left (-4\right )}}{b^{7}}\right )} - \frac {3 \, {\left (b^{3} d^{3} + a b^{2} d^{2} e + 3 \, a^{2} b d e^{2} - 5 \, a^{3} e^{3}\right )} e^{\left (-\frac {5}{2}\right )} \log \left ({\left | -\sqrt {b x + a} \sqrt {b} e^{\frac {1}{2}} + \sqrt {b^{2} d + {\left (b x + a\right )} b e - a b e} \right |}\right )}{b^{\frac {3}{2}}}\right )} d {\left | b \right |} e^{2}}{b^{2}} - \frac {210 \, {\left (\frac {{\left (b^{3} d^{2} + 2 \, a b^{2} d e - 3 \, a^{2} b e^{2}\right )} e^{\left (-\frac {3}{2}\right )} \log \left ({\left | -\sqrt {b x + a} \sqrt {b} e^{\frac {1}{2}} + \sqrt {b^{2} d + {\left (b x + a\right )} b e - a b e} \right |}\right )}{\sqrt {b}} + \sqrt {b^{2} d + {\left (b x + a\right )} b e - a b e} {\left (2 \, b x + {\left (b d e - 5 \, a e^{2}\right )} e^{\left (-2\right )} + 2 \, a\right )} \sqrt {b x + a}\right )} d^{2} {\left | b \right |} e}{b^{3}} - \frac {{\left (\sqrt {b^{2} d + {\left (b x + a\right )} b e - a b e} {\left (2 \, {\left (b x + a\right )} {\left (4 \, {\left (b x + a\right )} {\left (\frac {6 \, {\left (b x + a\right )}}{b^{3}} + \frac {{\left (b^{12} d e^{5} - 25 \, a b^{11} e^{6}\right )} e^{\left (-6\right )}}{b^{14}}\right )} - \frac {{\left (5 \, b^{13} d^{2} e^{4} + 14 \, a b^{12} d e^{5} - 163 \, a^{2} b^{11} e^{6}\right )} e^{\left (-6\right )}}{b^{14}}\right )} + \frac {3 \, {\left (5 \, b^{14} d^{3} e^{3} + 9 \, a b^{13} d^{2} e^{4} + 15 \, a^{2} b^{12} d e^{5} - 93 \, a^{3} b^{11} e^{6}\right )} e^{\left (-6\right )}}{b^{14}}\right )} \sqrt {b x + a} + \frac {3 \, {\left (5 \, b^{4} d^{4} + 4 \, a b^{3} d^{3} e + 6 \, a^{2} b^{2} d^{2} e^{2} + 20 \, a^{3} b d e^{3} - 35 \, a^{4} e^{4}\right )} e^{\left (-\frac {7}{2}\right )} \log \left ({\left | -\sqrt {b x + a} \sqrt {b} e^{\frac {1}{2}} + \sqrt {b^{2} d + {\left (b x + a\right )} b e - a b e} \right |}\right )}{b^{\frac {5}{2}}}\right )} {\left | b \right |} e^{3}}{b^{2}}}{24 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (d+e\,x\right )}^{3/2}\,\left (15\,d^2+20\,d\,e\,x+8\,e^2\,x^2\right )}{\sqrt {a+b\,x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________